package com.tupu.entity.permission;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (UserValidatecode)表实体类
 *
 * @author makejava
 * @since 2023-11-01 11:02:08
 */

@SuppressWarnings("serial")
@Data
@TableName("user_validatecode")
public class UserValidateCode extends Model<UserValidateCode> {

    //id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //验证码
    private String code;
    //插入时间
    private Date insertTime;
    //codeId
    private String codeId;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

